import time
from ..utils.crypto_utils import server_utils


class AppBase:
    def __init__(self, platform_name, app_v):
        # 设备号
        self.deviceid = server_utils.generate_random_string(rando_name="", length=32)
        # 当前时间戳毫秒
        self.ctime = int(time.time() * 1000)
        # app版本号
        self.build = "1.2.0"
        # app系统 ANDRIOD/IOS
        self.platform_name = platform_name
        # app包 BOOKS/XKB
        self.appV = app_v
